<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>module</title>
</head>
<body>

</body>
<script type="text/javascript">
var blogModule = (function (my) {
    var oldAddPhotoMethod = my.AddPhoto;

    my.AddPhoto = function () {
        // 重载方法，依然可通过oldAddPhotoMethod调用旧的方法
        alert("AddPhoto");
    };

    return my;
} (blogModule));
blogModule.AddPhoto();
</script>
</html>